package template;

import org.apache.wicket.markup.html.border.Border;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.resources.JavaScriptReference;
import org.apache.wicket.markup.html.resources.StyleSheetReference;
//import org.apache.wicket.markup.html.link.Link;
//import org.apache.wicket.markup.html.basic.Label;
//import org.apache.wicket.model.Model;

/**
 * Border that holds layout elements that can be reused by pages.
 * 
 */
public class PageLayout extends Border
{

	/**
     * Constructor
     * 
     */
    public PageLayout(String id)
    {
        super(id);
        // Stylesheets to gracefully handle cross-engine rendering
        add(new StyleSheetReference("resetCSS", getClass(), "css/reset.css"));
        add(new StyleSheetReference("formsCSS", getClass(), "css/forms.css"));
        add(new StyleSheetReference("gridCSS", getClass(), "css/grid.css"));
        add(new StyleSheetReference("ieCSS", getClass(), "css/ie.css"));
        add(new StyleSheetReference("typographyCSS", getClass(), "css/typography.css"));
        add(new StyleSheetReference("customCSS", getClass(), "css/custom.css"));
        
        // jQuery goodness
        add(new JavaScriptReference("jQuery", getClass(), "js/jquery-1.3.2.min.js"));
        add(new JavaScriptReference("jQueryUI", getClass(), "js/jquery-ui-1.7.2.custom.min.js"));
        add(new JavaScriptReference("TimePicker1", getClass(), "js/ui.timepickr.js"));
        add(new JavaScriptReference("TimePicker2", getClass(), "js/jquery.utils.js"));
        add(new JavaScriptReference("TimePicker3", getClass(), "js/jquery.strings.js"));
        add(new JavaScriptReference("qTip", getClass(), "js/jquery.qtip-1.0.0-rc3.min.js"));
        
        add(new StyleSheetReference("jQueryCSS", getClass(), "css/smoothness/jquery-ui-1.7.2.custom.css"));
        add(new StyleSheetReference("TimePickerCSS", getClass(), "css/jquery.timepickr.css"));
        
        // Links
        add(new BookmarkablePageLink("index", Index.class));
        add(new BookmarkablePageLink("login", ViewCalendars.class));
        
    }
   
}